package com.example.questionnaire_demo.mapper;

import com.example.questionnaire_demo.model.Answer;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;

@Mapper
public interface AnswerMapper {
    Answer selectById(Long id);
    List<Answer> selectByQuestionId(Long questionId);
    void insert(Answer answer);
    void update(Answer answer);
    void delete(Long id);
}